package cn.chihanbao.zkWeb;

import io.github.yidasanqian.utils.JsonUtil;

public class JDBCParam {
    private String url;
    private String name;
    private String password;

    public JDBCParam(String url, String name, String password) {
        this.url = url;
        this.name = name;
        this.password = password;
    }

    public JDBCParam() {
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }




    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
//    @Override
//    public String toString() {
//        return "JDBCParam{" +
//                "url='" + url + '\'' +
//                ", name='" + name + '\'' +
//                ", password='" + password + '\'' +
//                '}';
//    }
    public static void main(String[] args) {
        JDBCParam jdbcParam = new JDBCParam("jdbc:mysql://linux123:3306/azkaban?characterEncoding=utf-8&useSSL=false", "azkaban", "azkaban");
        System.out.println( JsonUtil.toJsonString( jdbcParam ));
    }
}
